using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_AccessoryMap : EntityTypeConfiguration<t_Accessory>
    {
        public t_AccessoryMap()
        {
            // Primary Key
            this.HasKey(t => t.FID);

            // Properties
            this.Property(t => t.FDesc)
                .HasMaxLength(50);

            this.Property(t => t.FFileName)
                .HasMaxLength(250);

            // Table & Column Mappings
            this.ToTable("t_Accessory");
            this.Property(t => t.FID).HasColumnName("FID");
            this.Property(t => t.FTypeID).HasColumnName("FTypeID");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FDesc).HasColumnName("FDesc");
            this.Property(t => t.FFileName).HasColumnName("FFileName");
            this.Property(t => t.FFile).HasColumnName("FFile");
            this.Property(t => t.FFileSize).HasColumnName("FFileSize");
            this.Property(t => t.FUploader).HasColumnName("FUploader");
            this.Property(t => t.FUploadTime).HasColumnName("FUploadTime");
            this.Property(t => t.FChecker).HasColumnName("FChecker");
            this.Property(t => t.FIsPIC).HasColumnName("FIsPIC");
            this.Property(t => t.FData).HasColumnName("FData");
        }
    }
}
